%%% -*- mode: erlang -*-
-ifndef(rtps_udp_hrl).
-define(rtps_udp_hrl, true).

%% 9.6.1.4.1 Default multicast address
-define(DEFAULT_UDPv4_MULTICAST_ADDRESS, "239.255.0.1").
%% OpenDDS (Table 7.16) uses 224.0.0.128:<port> and [FF01::80] (Port
%% is 49152), for udp multicast. For rtps_udp it uses 239.255.0.2:7401
%% (Table 7.17)!! Notice the 2 instead of 1.. OpenSplice uses
%% ff02::ffff:239.255.0.1 for IPv6

%% 9.6.1.3 Default Port Numbers
-define(PB, 7400). % Port Base number
-define(DG, 250). % DomainId Gain
-define(PG, 2). % ParticipantId Gain
-define(d0, 0). % offsets
-define(d1, 10).
-define(d2, 1).
-define(d3, 11).

-define(UDP_MAX_SIZE, 16#ffff). % UDP maximum packet size 64K

-define(UDP_HEADER_SIZE, 8).
-define(IP_HEADER_SIZE, 20).

-endif.
